﻿@{
    var HomeUrl = this.User.Identity.IsAuthenticated ? Url.Action("Index", "Quadrant") : Url.Action("Index", "Home");
}
<div class="navbar navbar-inverse navbar-twitch" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">
                <span class="small-nav">
                    <span class="logo">
                        <img src="~/Images/quadrant_ico_32.png" alt="Quadrant small logo" />
                    </span>
                </span>
                <span class="full-nav">
                    <img src="~/Images/quadrant_logo_183x51.png" alt="Quadrant logo" />
                </span>
            </a>
        </div>
        <div class="">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="@HomeUrl">
                        <span class="small-nav" data-toggle="tooltip" data-placement="right" title="Home">
                            <span class="glyphicon glyphicon-home"></span>
                        </span>
                        <span class="full-nav"> Home </span>
                    </a>
                </li>
             @if (Request.IsAuthenticated)
             {
                 <li>
                     <a id="add-stick" href="#">
                         <span class="small-nav" data-toggle="tooltip" data-placement="right" title="Add a new sticker">
                             <span class="glyphicon glyphicon-plus-sign"></span>
                         </span>
                         <span class="full-nav">Add a new sticker</span>
                     </a>
                 </li>
                 <li>
                     <a href="@Url.Action("Manage", "Account")">
                         <span class="small-nav" data-toggle="tooltip" data-placement="right" title="My profile">
                             <span class="glyphicon glyphicon-user"></span>
                         </span>
                         <span class="full-nav">My profile</span>
                     </a>
                 </li>
                 <li>
                     <a href="javascript:document.getElementById('logoutForm').submit()">
                         <span class="small-nav" data-toggle="tooltip" data-placement="right" title="Logoff">
                             <span class="glyphicon glyphicon-off"></span>
                         </span>
                         <span class="full-nav">Logoff</span>
                     </a>
                 </li>
             }
             else
             {
                @*<li>
                    <a href="@Url.Action("About","Home")">
                        <span class="small-nav" data-toggle="tooltip" data-placement="right" title="About Us">
                            <span class="glyphicon glyphicon-question-sign"></span>
                        </span>
                        <span class="full-nav"> About Us </span>
                    </a>
                </li>
                <li>
                    <a href="@Url.Action("Contact","Home")">
                        <span class="small-nav" data-toggle="tooltip" data-placement="right" title="Contact Us">
                            <span class="glyphicon glyphicon-comment"></span>
                        </span>
                        <span class="full-nav"> Contact Us </span>
                    </a>
                </li>*@
             }
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
<button type="button" class="btn btn-default btn-xs navbar-twitch-toggle">
    <span class="glyphicon glyphicon-chevron-right nav-open"></span>
    <span class="glyphicon glyphicon-chevron-left nav-close"></span>
</button>
@if (Request.IsAuthenticated)
{
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
    {
        @Html.AntiForgeryToken()
    }
}